@@ -188,13 +188,13 @@ namespace librapid::internal {
188
188
189
189
// ------- 8bit Signed Integer ---------------------------------------------
190
190
template <>
191
- struct traits <int8_t > {
191
+ struct traits <i8 > {
192
192
static constexpr bool IsScalar = true ;
193
193
static constexpr bool IsEvaluated = true ;
194
194
using Valid = std::true_type;
195
- using Scalar = int8_t ;
196
- using BaseScalar = int8_t ;
197
- using StorageType = memory::DenseStorage<int8_t , device::CPU>;
195
+ using Scalar = i8 ;
196
+ using BaseScalar = i8 ;
197
+ using StorageType = memory::DenseStorage<i8 , device::CPU>;
198
198
using Packet = LR_VC_TYPE(BaseScalar);
199
199
using Device = device::CPU;
200
200
static constexpr i64 PacketWidth = LR_VC_SIZE(BaseScalar);
@@ -207,12 +207,12 @@ namespace librapid::internal {
207
207
static constexpr cudaDataType_t CudaType = cudaDataType_t::CUDA_R_8I;
208
208
#endif
209
209
210
- static constexpr ui64 Size = sizeof (int8_t );
210
+ static constexpr ui64 Size = sizeof (i8 );
211
211
static constexpr bool CanAlign = true ;
212
212
static constexpr bool CanMemcpy = true ;
213
213
214
214
template <typename CAST>
215
- LR_FORCE_INLINE static CAST cast (const int8_t &val) {
215
+ LR_FORCE_INLINE static CAST cast (const i8 &val) {
216
216
return (CAST)val;
217
217
}
218
218
@@ -238,7 +238,7 @@ namespace librapid::internal {
238
238
using Packet = LR_VC_TYPE(BaseScalar);
239
239
using Device = device::CPU;
240
240
static constexpr i64 PacketWidth = LR_VC_SIZE(BaseScalar);
241
- static constexpr char Name[] = " ui8 " ;
241
+ static constexpr char Name[] = " uint8_t " ;
242
242
static constexpr ui64 Flags = flags::PacketBitwise | flags::ScalarBitwise |
243
243
flags::PacketArithmetic | flags::ScalarArithmetic |
244
244
flags::PacketLogical | flags::ScalarLogical;
@@ -278,7 +278,7 @@ namespace librapid::internal {
278
278
using Packet = LR_VC_TYPE(BaseScalar);
279
279
using Device = device::CPU;
280
280
static constexpr i64 PacketWidth = LR_VC_SIZE(BaseScalar);
281
- static constexpr char Name[] = " i16 " ;
281
+ static constexpr char Name[] = " int16_t " ;
282
282
static constexpr ui64 Flags = flags::PacketBitwise | flags::ScalarBitwise |
283
283
flags::PacketArithmetic | flags::ScalarArithmetic |
284
284
flags::PacketLogical | flags::ScalarLogical;
@@ -318,7 +318,7 @@ namespace librapid::internal {
318
318
using Packet = LR_VC_TYPE(BaseScalar);
319
319
using Device = device::CPU;
320
320
static constexpr i64 PacketWidth = LR_VC_SIZE(BaseScalar);
321
- static constexpr char Name[] = " ui16 " ;
321
+ static constexpr char Name[] = " uint16_t " ;
322
322
static constexpr ui64 Flags = flags::PacketBitwise | flags::ScalarBitwise |
323
323
flags::PacketArithmetic | flags::ScalarArithmetic |
324
324
flags::PacketLogical | flags::ScalarLogical;
@@ -358,7 +358,7 @@ namespace librapid::internal {
358
358
using Packet = LR_VC_TYPE(BaseScalar);
359
359
using Device = device::CPU;
360
360
static constexpr i64 PacketWidth = LR_VC_SIZE(BaseScalar);
361
- static constexpr char Name[] = " i32 " ;
361
+ static constexpr char Name[] = " int32_t " ;
362
362
static constexpr ui64 Flags = flags::PacketBitwise | flags::ScalarBitwise |
363
363
flags::PacketArithmetic | flags::ScalarArithmetic |
364
364
flags::PacketLogical | flags::ScalarLogical;
@@ -398,7 +398,7 @@ namespace librapid::internal {
398
398
using Packet = LR_VC_TYPE(BaseScalar);
399
399
using Device = device::CPU;
400
400
static constexpr i64 PacketWidth = LR_VC_SIZE(BaseScalar);
401
- static constexpr char Name[] = " ui32 " ;
401
+ static constexpr char Name[] = " uint32_t " ;
402
402
static constexpr ui64 Flags = flags::PacketBitwise | flags::ScalarBitwise |
403
403
flags::PacketArithmetic | flags::ScalarArithmetic |
404
404
flags::PacketLogical | flags::ScalarLogical;
@@ -438,7 +438,7 @@ namespace librapid::internal {
438
438
using Packet = std::false_type; // Vc::Vector<BaseScalar>;
439
439
using Device = device::CPU;
440
440
static constexpr i64 PacketWidth = 1 ; // LR_VC_SIZE(BaseScalar);
441
- static constexpr char Name[] = " i64 " ;
441
+ static constexpr char Name[] = " int64_t " ;
442
442
static constexpr ui64 Flags = flags::PacketBitwise | flags::ScalarBitwise |
443
443
flags::PacketArithmetic | flags::ScalarArithmetic |
444
444
flags::PacketLogical | flags::ScalarLogical;
@@ -478,7 +478,7 @@ namespace librapid::internal {
478
478
using Packet = std::false_type; // Vc::Vector<BaseScalar>;
479
479
using Device = device::CPU;
480
480
static constexpr i64 PacketWidth = 1 ; // LR_VC_SIZE(BaseScalar);
481
- static constexpr char Name[] = " ui64 " ;
481
+ static constexpr char Name[] = " uint64_t " ;
482
482
static constexpr ui64 Flags = flags::PacketBitwise | flags::ScalarBitwise |
483
483
flags::PacketArithmetic | flags::ScalarArithmetic |
484
484
flags::PacketLogical | flags::ScalarLogical;
@@ -520,7 +520,7 @@ namespace librapid::internal {
520
520
using Packet = LR_VC_TYPE(BaseScalar);
521
521
using Device = device::CPU;
522
522
static constexpr i64 PacketWidth = LR_VC_SIZE(BaseScalar);
523
- static constexpr char Name[] = " f32 " ;
523
+ static constexpr char Name[] = " float " ;
524
524
static constexpr ui64 Flags = flags::PacketArithmetic | flags::ScalarArithmetic |
525
525
flags::PacketLogical | flags::ScalarLogical;
526
526
@@ -559,7 +559,7 @@ namespace librapid::internal {
559
559
using Packet = LR_VC_TYPE(BaseScalar);
560
560
using Device = device::CPU;
561
561
static constexpr i64 PacketWidth = LR_VC_SIZE(BaseScalar);
562
- static constexpr char Name[] = " f64 " ;
562
+ static constexpr char Name[] = " double " ;
563
563
static constexpr ui64 Flags = flags::PacketArithmetic | flags::ScalarArithmetic |
564
564
flags::PacketLogical | flags::ScalarLogical;
565
565
0 commit comments