literals.hpp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. #pragma once
  2. namespace nall {
  3. inline auto operator"" _b(unsigned long long value) { return boolean{value}; }
  4. inline auto operator"" _n(unsigned long long value) { return natural{value}; }
  5. inline auto operator"" _i(unsigned long long value) { return integer{value}; }
  6. inline auto operator"" _r(long double value) { return real{value}; }
  7. inline auto operator"" _n1(unsigned long long value) { return natural1{value}; }
  8. inline auto operator"" _n2(unsigned long long value) { return natural2{value}; }
  9. inline auto operator"" _n3(unsigned long long value) { return natural3{value}; }
  10. inline auto operator"" _n4(unsigned long long value) { return natural4{value}; }
  11. inline auto operator"" _n5(unsigned long long value) { return natural5{value}; }
  12. inline auto operator"" _n6(unsigned long long value) { return natural6{value}; }
  13. inline auto operator"" _n7(unsigned long long value) { return natural7{value}; }
  14. inline auto operator"" _n8(unsigned long long value) { return natural8{value}; }
  15. inline auto operator"" _n9(unsigned long long value) { return natural9{value}; }
  16. inline auto operator"" _n10(unsigned long long value) { return natural10{value}; }
  17. inline auto operator"" _n11(unsigned long long value) { return natural11{value}; }
  18. inline auto operator"" _n12(unsigned long long value) { return natural12{value}; }
  19. inline auto operator"" _n13(unsigned long long value) { return natural13{value}; }
  20. inline auto operator"" _n14(unsigned long long value) { return natural14{value}; }
  21. inline auto operator"" _n15(unsigned long long value) { return natural15{value}; }
  22. inline auto operator"" _n16(unsigned long long value) { return natural16{value}; }
  23. inline auto operator"" _n17(unsigned long long value) { return natural17{value}; }
  24. inline auto operator"" _n18(unsigned long long value) { return natural18{value}; }
  25. inline auto operator"" _n19(unsigned long long value) { return natural19{value}; }
  26. inline auto operator"" _n20(unsigned long long value) { return natural20{value}; }
  27. inline auto operator"" _n21(unsigned long long value) { return natural21{value}; }
  28. inline auto operator"" _n22(unsigned long long value) { return natural22{value}; }
  29. inline auto operator"" _n23(unsigned long long value) { return natural23{value}; }
  30. inline auto operator"" _n24(unsigned long long value) { return natural24{value}; }
  31. inline auto operator"" _n25(unsigned long long value) { return natural25{value}; }
  32. inline auto operator"" _n26(unsigned long long value) { return natural26{value}; }
  33. inline auto operator"" _n27(unsigned long long value) { return natural27{value}; }
  34. inline auto operator"" _n28(unsigned long long value) { return natural28{value}; }
  35. inline auto operator"" _n29(unsigned long long value) { return natural29{value}; }
  36. inline auto operator"" _n30(unsigned long long value) { return natural30{value}; }
  37. inline auto operator"" _n31(unsigned long long value) { return natural31{value}; }
  38. inline auto operator"" _n32(unsigned long long value) { return natural32{value}; }
  39. inline auto operator"" _n33(unsigned long long value) { return natural33{value}; }
  40. inline auto operator"" _n34(unsigned long long value) { return natural34{value}; }
  41. inline auto operator"" _n35(unsigned long long value) { return natural35{value}; }
  42. inline auto operator"" _n36(unsigned long long value) { return natural36{value}; }
  43. inline auto operator"" _n37(unsigned long long value) { return natural37{value}; }
  44. inline auto operator"" _n38(unsigned long long value) { return natural38{value}; }
  45. inline auto operator"" _n39(unsigned long long value) { return natural39{value}; }
  46. inline auto operator"" _n40(unsigned long long value) { return natural40{value}; }
  47. inline auto operator"" _n41(unsigned long long value) { return natural41{value}; }
  48. inline auto operator"" _n42(unsigned long long value) { return natural42{value}; }
  49. inline auto operator"" _n43(unsigned long long value) { return natural43{value}; }
  50. inline auto operator"" _n44(unsigned long long value) { return natural44{value}; }
  51. inline auto operator"" _n45(unsigned long long value) { return natural45{value}; }
  52. inline auto operator"" _n46(unsigned long long value) { return natural46{value}; }
  53. inline auto operator"" _n47(unsigned long long value) { return natural47{value}; }
  54. inline auto operator"" _n48(unsigned long long value) { return natural48{value}; }
  55. inline auto operator"" _n49(unsigned long long value) { return natural49{value}; }
  56. inline auto operator"" _n50(unsigned long long value) { return natural50{value}; }
  57. inline auto operator"" _n51(unsigned long long value) { return natural51{value}; }
  58. inline auto operator"" _n52(unsigned long long value) { return natural52{value}; }
  59. inline auto operator"" _n53(unsigned long long value) { return natural53{value}; }
  60. inline auto operator"" _n54(unsigned long long value) { return natural54{value}; }
  61. inline auto operator"" _n55(unsigned long long value) { return natural55{value}; }
  62. inline auto operator"" _n56(unsigned long long value) { return natural56{value}; }
  63. inline auto operator"" _n57(unsigned long long value) { return natural57{value}; }
  64. inline auto operator"" _n58(unsigned long long value) { return natural58{value}; }
  65. inline auto operator"" _n59(unsigned long long value) { return natural59{value}; }
  66. inline auto operator"" _n60(unsigned long long value) { return natural60{value}; }
  67. inline auto operator"" _n61(unsigned long long value) { return natural61{value}; }
  68. inline auto operator"" _n62(unsigned long long value) { return natural62{value}; }
  69. inline auto operator"" _n63(unsigned long long value) { return natural63{value}; }
  70. inline auto operator"" _n64(unsigned long long value) { return natural64{value}; }
  71. inline auto operator"" _i1(unsigned long long value) { return integer1{value}; }
  72. inline auto operator"" _i2(unsigned long long value) { return integer2{value}; }
  73. inline auto operator"" _i3(unsigned long long value) { return integer3{value}; }
  74. inline auto operator"" _i4(unsigned long long value) { return integer4{value}; }
  75. inline auto operator"" _i5(unsigned long long value) { return integer5{value}; }
  76. inline auto operator"" _i6(unsigned long long value) { return integer6{value}; }
  77. inline auto operator"" _i7(unsigned long long value) { return integer7{value}; }
  78. inline auto operator"" _i8(unsigned long long value) { return integer8{value}; }
  79. inline auto operator"" _i9(unsigned long long value) { return integer9{value}; }
  80. inline auto operator"" _i10(unsigned long long value) { return integer10{value}; }
  81. inline auto operator"" _i11(unsigned long long value) { return integer11{value}; }
  82. inline auto operator"" _i12(unsigned long long value) { return integer12{value}; }
  83. inline auto operator"" _i13(unsigned long long value) { return integer13{value}; }
  84. inline auto operator"" _i14(unsigned long long value) { return integer14{value}; }
  85. inline auto operator"" _i15(unsigned long long value) { return integer15{value}; }
  86. inline auto operator"" _i16(unsigned long long value) { return integer16{value}; }
  87. inline auto operator"" _i17(unsigned long long value) { return integer17{value}; }
  88. inline auto operator"" _i18(unsigned long long value) { return integer18{value}; }
  89. inline auto operator"" _i19(unsigned long long value) { return integer19{value}; }
  90. inline auto operator"" _i20(unsigned long long value) { return integer20{value}; }
  91. inline auto operator"" _i21(unsigned long long value) { return integer21{value}; }
  92. inline auto operator"" _i22(unsigned long long value) { return integer22{value}; }
  93. inline auto operator"" _i23(unsigned long long value) { return integer23{value}; }
  94. inline auto operator"" _i24(unsigned long long value) { return integer24{value}; }
  95. inline auto operator"" _i25(unsigned long long value) { return integer25{value}; }
  96. inline auto operator"" _i26(unsigned long long value) { return integer26{value}; }
  97. inline auto operator"" _i27(unsigned long long value) { return integer27{value}; }
  98. inline auto operator"" _i28(unsigned long long value) { return integer28{value}; }
  99. inline auto operator"" _i29(unsigned long long value) { return integer29{value}; }
  100. inline auto operator"" _i30(unsigned long long value) { return integer30{value}; }
  101. inline auto operator"" _i31(unsigned long long value) { return integer31{value}; }
  102. inline auto operator"" _i32(unsigned long long value) { return integer32{value}; }
  103. inline auto operator"" _i33(unsigned long long value) { return integer33{value}; }
  104. inline auto operator"" _i34(unsigned long long value) { return integer34{value}; }
  105. inline auto operator"" _i35(unsigned long long value) { return integer35{value}; }
  106. inline auto operator"" _i36(unsigned long long value) { return integer36{value}; }
  107. inline auto operator"" _i37(unsigned long long value) { return integer37{value}; }
  108. inline auto operator"" _i38(unsigned long long value) { return integer38{value}; }
  109. inline auto operator"" _i39(unsigned long long value) { return integer39{value}; }
  110. inline auto operator"" _i40(unsigned long long value) { return integer40{value}; }
  111. inline auto operator"" _i41(unsigned long long value) { return integer41{value}; }
  112. inline auto operator"" _i42(unsigned long long value) { return integer42{value}; }
  113. inline auto operator"" _i43(unsigned long long value) { return integer43{value}; }
  114. inline auto operator"" _i44(unsigned long long value) { return integer44{value}; }
  115. inline auto operator"" _i45(unsigned long long value) { return integer45{value}; }
  116. inline auto operator"" _i46(unsigned long long value) { return integer46{value}; }
  117. inline auto operator"" _i47(unsigned long long value) { return integer47{value}; }
  118. inline auto operator"" _i48(unsigned long long value) { return integer48{value}; }
  119. inline auto operator"" _i49(unsigned long long value) { return integer49{value}; }
  120. inline auto operator"" _i50(unsigned long long value) { return integer50{value}; }
  121. inline auto operator"" _i51(unsigned long long value) { return integer51{value}; }
  122. inline auto operator"" _i52(unsigned long long value) { return integer52{value}; }
  123. inline auto operator"" _i53(unsigned long long value) { return integer53{value}; }
  124. inline auto operator"" _i54(unsigned long long value) { return integer54{value}; }
  125. inline auto operator"" _i55(unsigned long long value) { return integer55{value}; }
  126. inline auto operator"" _i56(unsigned long long value) { return integer56{value}; }
  127. inline auto operator"" _i57(unsigned long long value) { return integer57{value}; }
  128. inline auto operator"" _i58(unsigned long long value) { return integer58{value}; }
  129. inline auto operator"" _i59(unsigned long long value) { return integer59{value}; }
  130. inline auto operator"" _i60(unsigned long long value) { return integer60{value}; }
  131. inline auto operator"" _i61(unsigned long long value) { return integer61{value}; }
  132. inline auto operator"" _i62(unsigned long long value) { return integer62{value}; }
  133. inline auto operator"" _i63(unsigned long long value) { return integer63{value}; }
  134. inline auto operator"" _i64(unsigned long long value) { return integer64{value}; }
  135. inline auto operator"" _r32(long double value) { return real32{value}; }
  136. inline auto operator"" _r64(long double value) { return real32{value}; }
  137. }