repo
stringlengths
1
152
file
stringlengths
14
221
code
stringlengths
501
25k
file_length
int64
501
25k
avg_line_length
float64
20
99.5
max_line_length
int64
21
134
extension_type
stringclasses
2 values
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_shortShiftRightExtendM.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
2,614
34.337838
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f32_to_i32_r_minMag.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
3,638
39.433333
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_commonNaNToF128UI.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of California. All rights reserved. Redistribution a...
2,455
42.087719
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f16_isSignalingNaN.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of California. All rights reserved. Redistribution a...
2,059
38.615385
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_roundToUI64.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the University of California. All rights reserved. Redi...
3,349
37.953488
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f128_le.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014 The Regents of the University of California. All rights reserved. Redistribution and use ...
2,748
36.657534
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/internals.h
/*============================================================================ This C header file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the University of California. All rights reserved. Redi...
10,751
36.463415
133
h
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f64_to_ui64.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the University of California. All rights reserved. Redi...
4,003
37.5
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_roundPackToF32.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2017 The Regents of the University of California. All rights reserved. Redistribu...
4,778
40.921053
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f16_to_ui64.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the University of California. All rights reserved. Redi...
3,347
38.388235
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_sub256M.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of California. All rights reserved. Redistribution a...
2,405
35.454545
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_shortShiftRightM.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
2,543
34.830986
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_countLeadingZeros64.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of California. All rights reserved. Redistribution a...
2,650
34.824324
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f32_roundToInt.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2017 The Regents of the University of California. All rights reserved. Redistribution a...
4,425
38.168142
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_approxRecip32_1.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
2,614
38.029851
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f32_to_ui64.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the University of California. All rights reserved. Redi...
3,794
38.123711
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f128_rem.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
7,468
38.104712
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_roundPackToF128.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2017 The Regents of the University of California. All rights reserved. Redistribu...
6,709
38.011628
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f16_to_i32.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the University of California. All rights reserved. Redi...
3,402
37.670455
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f64_le.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014 The Regents of the University of California. All rights reserved. Redistribution and use ...
2,501
35.794118
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_roundPackToUI32.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3a+, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistrib...
3,303
39.790123
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f128_isSignalingNaN.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014 The Regents of the University of California. All rights reserved. Redistribution and use ...
2,071
38.846154
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_sub1XM.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of California. All rights reserved. Redistribution a...
2,293
36.606557
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/i32_to_f128.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
2,437
36.507692
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/fall_maxmin.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
4,517
54.097561
96
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f16_to_i64.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the University of California. All rights reserved. Redi...
3,402
37.670455
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_normSubnormalF64Sig.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
2,147
39.528302
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f32_to_i64_r_minMag.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
3,780
38.8
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f128_mulAdd.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014 The Regents of the University of California. All rights reserved. Redistribution and use ...
2,395
36.4375
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/i32_to_f64.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
2,438
35.954545
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f64_to_i32_r_minMag.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
3,858
38.783505
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f128_div.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014 The Regents of the University of California. All rights reserved. Redistribution and use ...
7,769
37.85
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_add128.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of California. All rights reserved. Redistribution a...
2,111
36.714286
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f64_to_ui64_r_minMag.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
3,721
38.595745
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f128_to_f64.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of California. All rights reserved. Redistribution a...
3,977
38.386139
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f32_mulAdd.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014 The Regents of the University of California. All rights reserved. Redistribution and use ...
2,251
35.918033
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_addCarryM.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
2,514
34.422535
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_shortShiftRight128.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
2,140
37.232143
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_propagateNaNF64UI.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of California. All rights reserved. Redistribution a...
2,598
43.050847
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_normRoundPackToF16.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
2,382
39.389831
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f32_to_f16.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of California. All rights reserved. Redistribution a...
3,460
37.88764
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f32_sub.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
2,607
35.732394
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/ui64_to_f128.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All Rights Reserved. Redistribu...
2,551
35.985507
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_countLeadingZeros8.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014 The Regents of the University of California. All rights reserved. Redistribution and use ...
2,770
45.183333
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f32_to_ui32_r_minMag.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
3,538
38.764045
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f16_to_ui32_r_minMag.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
3,562
39.488636
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f16_to_i16.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the University of California. All rights reserved. Redi...
2,418
40.706897
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_shortShiftRightJam64Extra.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
2,171
37.105263
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_subM.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of California. All rights reserved. Redistribution a...
2,496
34.169014
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_roundToI64.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the University of California. All rights reserved. Redi...
3,460
37.455556
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_normRoundPackToF64.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
2,385
39.440678
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f128_to_ui32_r_minMag.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
3,654
39.611111
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f128_to_i64_r_minMag.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
4,781
40.947368
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_approxRecipSqrt_1Ks.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
2,275
44.52
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_addMagsF16.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the University of California. All rights reserved. Redi...
6,761
35.75
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_addComplCarryM.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
2,525
34.577465
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f64_lt_quiet.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014 The Regents of the University of California. All rights reserved. Redistribution and use ...
2,645
35.246575
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f32_le_quiet.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014 The Regents of the University of California. All rights reserved. Redistribution and use ...
2,616
35.347222
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f128_classify.c
#include <stdbool.h> #include <stdint.h> #include "platform.h" #include "internals.h" #include "specialize.h" #include "softfloat.h" uint_fast16_t f128_classify( float128_t a ) { union ui128_f128 uA; uint_fast64_t uiA64, uiA0; uA.f = a; uiA64 = uA.ui.v64; uiA0 = uA.ui.v0; uint_fast16_t infO...
1,220
31.131579
62
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f16_classify.c
#include <stdbool.h> #include <stdint.h> #include "platform.h" #include "internals.h" #include "specialize.h" #include "softfloat.h" uint_fast16_t f16_classify( float16_t a ) { union ui16_f16 uA; uint_fast16_t uiA; uA.f = a; uiA = uA.ui; uint_fast16_t infOrNaN = expF16UI( uiA ) == 0x1F; uint...
1,127
29.486486
57
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_lt128.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of California. All rights reserved. Redistribution a...
2,053
38.5
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f32_lt.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014 The Regents of the University of California. All rights reserved. Redistribution and use ...
2,475
35.955224
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f16_to_ui8.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the University of California. All rights reserved. Redi...
2,277
40.418182
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f32_to_i32.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the University of California. All rights reserved. Redi...
3,394
38.941176
80
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f32_to_f64.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of California. All rights reserved. Redistribution a...
3,594
37.244681
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_normSubnormalF32Sig.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
2,146
39.509434
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_countLeadingZeros32.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of California. All rights reserved. Redistribution a...
2,310
34.553846
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_mulAddF32.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
8,272
35.768889
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_propagateNaNF128UI.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of California. All rights reserved. Redistribution a...
3,012
39.716216
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f64_isSignalingNaN.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014 The Regents of the University of California. All rights reserved. Redistribution and use ...
2,052
38.480769
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_mulAddF16.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of California. All rights reserved. Redistribu...
8,247
35.334802
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f16_roundToInt.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2017 The Regents of the University of California. All rights reserved. Redistribu...
4,425
38.168142
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/i64_to_f64.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014 The Regents of the University of California. All rights reserved. Redistribution and use ...
2,297
37.949153
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/s_roundMToI64.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the University of California. All rights reserved. Redi...
3,514
38.494382
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f64_le_quiet.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014 The Regents of the University of California. All rights reserved. Redistribution and use ...
2,647
35.273973
79
c
null
mempool-main/toolchain/riscv-isa-sim/softfloat/f128_lt.c
/*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic Package, Release 3d, by John R. Hauser. Copyright 2011, 2012, 2013, 2014 The Regents of the University of California. All rights reserved. Redistribution and use ...
2,744
36.60274
79
c
null
mempool-main/toolchain/riscv-isa-sim/fdt/fdt_overlay.c
// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2016 Free Electrons * Copyright (C) 2016 NextThing Co. */ #include "libfdt_env.h" #include <fdt.h> #include <libfdt.h> #include "libfdt_internal.h" /** * overlay_get_target_phandle - retrie...
22,148
24.112245
75
c
null
mempool-main/toolchain/riscv-isa-sim/fdt/fdt.c
// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. */ #include "libfdt_env.h" #include <fdt.h> #include <libfdt.h> #include "libfdt_internal.h" /* * Minimal sanity check for a read-only tree. fdt_ro_probe_...
6,679
21.876712
76
c
null
mempool-main/toolchain/riscv-isa-sim/fdt/fdt_sw.c
// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. */ #include "libfdt_env.h" #include <fdt.h> #include <libfdt.h> #include "libfdt_internal.h" static int fdt_sw_probe_(void *fdt) { if (fdt_magic(fdt) == F...
8,437
21.381963
79
c
null
mempool-main/toolchain/riscv-isa-sim/fdt/fdt.h
/* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) */ #ifndef FDT_H #define FDT_H /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. * Copyright 2012 Kim Phillips, Freescale Semiconductor. */ #ifndef __ASSEMBLY__ struct fdt_header { fdt32_t magic; /* ma...
1,761
25.298507
65
h
null
mempool-main/toolchain/riscv-isa-sim/fdt/fdt_strerror.c
// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "libfdt_env.h" #include <fdt.h> #include <libfdt.h> #include "libfdt_internal.h" stru...
1,443
23.066667
71
c
null
mempool-main/toolchain/riscv-isa-sim/fdt/fdt_addresses.c
// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2014 David Gibson <david@gibson.dropbear.id.au> * Copyright (C) 2018 embedded brains GmbH */ #include "libfdt_env.h" #include <fdt.h> #include <libfdt.h> #include "libfdt_internal.h" static ...
2,182
20.401961
71
c
null
mempool-main/toolchain/riscv-isa-sim/fdt/libfdt_internal.h
/* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) */ #ifndef LIBFDT_INTERNAL_H #define LIBFDT_INTERNAL_H /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. */ #include <fdt.h> #define FDT_ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) #define FDT_TAGALIGN(x) (...
1,472
27.326923
82
h
null
mempool-main/toolchain/riscv-isa-sim/fdt/fdt_rw.c
// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. */ #include "libfdt_env.h" #include <fdt.h> #include <libfdt.h> #include "libfdt_internal.h" static int fdt_blocks_misordered_(const void *fdt, int m...
11,299
22.689727
76
c
null
mempool-main/toolchain/riscv-isa-sim/fdt/fdt_ro.c
// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. */ #include "libfdt_env.h" #include <fdt.h> #include <libfdt.h> #include "libfdt_internal.h" static int fdt_nodename_eq_(const void *fdt, int offset, ...
18,907
20.032258
80
c
null
mempool-main/toolchain/riscv-isa-sim/fdt/libfdt_env.h
/* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) */ #ifndef LIBFDT_ENV_H #define LIBFDT_ENV_H /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. * Copyright 2012 Kim Phillips, Freescale Semiconductor. */ #include <string.h> #include <stdint.h> #include <st...
2,769
27.265306
84
h
null
mempool-main/toolchain/riscv-isa-sim/riscv/byteorder.h
// See LICENSE for license details. #ifndef _RISCV_BYTEORDER_H #define _RISCV_BYTEORDER_H #include "config.h" #include <stdint.h> static inline uint8_t swap(uint8_t n) { return n; } static inline uint16_t swap(uint16_t n) { return __builtin_bswap16(n); } static inline uint32_t swap(uint32_t n) { return __builtin_bsw...
1,240
39.032258
72
h
null
mempool-main/toolchain/riscv-isa-sim/riscv/trap.h
// See LICENSE for license details. #ifndef _RISCV_TRAP_H #define _RISCV_TRAP_H #include "decode.h" #include <stdlib.h> struct state_t; class trap_t { public: trap_t(reg_t which) : which(which) {} virtual const char* name(); virtual bool has_gva() { return false; } virtual bool has_tval() { return false; }...
3,158
31.90625
95
h
null
mempool-main/toolchain/riscv-isa-sim/riscv/processor.h
// See LICENSE for license details. #ifndef _RISCV_PROCESSOR_H #define _RISCV_PROCESSOR_H #include "decode.h" #include "config.h" #include "devices.h" #include "trap.h" #include <string> #include <vector> #include <unordered_map> #include <map> #include <cassert> #include "debug_rom_defines.h" class processor_t; clas...
12,531
22.29368
84
h
null
mempool-main/toolchain/riscv-isa-sim/riscv/disasm.h
// See LICENSE for license details. #ifndef _RISCV_DISASM_H #define _RISCV_DISASM_H #include "decode.h" #include <string> #include <sstream> #include <vector> extern const char* xpr_name[NXPR]; extern const char* fpr_name[NFPR]; extern const char* vr_name[NVPR]; extern const char* csr_name(int which); class arg_t {...
2,320
21.533981
73
h
null
mempool-main/toolchain/riscv-isa-sim/riscv/cachesim.h
// See LICENSE for license details. #ifndef _RISCV_CACHE_SIM_H #define _RISCV_CACHE_SIM_H #include "memtracer.h" #include <cstring> #include <string> #include <map> #include <cstdint> class lfsr_t { public: lfsr_t() : reg(1) {} lfsr_t(const lfsr_t& lfsr) : reg(lfsr.reg) {} uint32_t next() { return reg = (reg>...
2,830
20.610687
81
h
null
mempool-main/toolchain/riscv-isa-sim/riscv/mmio_plugin.h
#ifndef _RISCV_MMIO_PLUGIN_H #define _RISCV_MMIO_PLUGIN_H #include <stdbool.h> #include <stddef.h> #include <stdint.h> #ifdef __cplusplus extern "C" { #endif typedef uint64_t reg_t; typedef struct { // Allocate user data for an instance of the plugin. The parameter is a simple // c-string containing arguments u...
2,932
30.880435
80
h
null
mempool-main/toolchain/riscv-isa-sim/riscv/dts.h
// See LICENSE for license details. #ifndef _RISCV_DTS_H #define _RISCV_DTS_H #include "processor.h" #include "mmu.h" #include <string> std::string make_dts(size_t insns_per_rtc_tick, size_t cpu_hz, reg_t initrd_start, reg_t initrd_end, const char* bootargs, ...
782
31.625
65
h
null
mempool-main/toolchain/riscv-isa-sim/riscv/extension.h
// See LICENSE for license details. #ifndef _RISCV_COPROCESSOR_H #define _RISCV_COPROCESSOR_H #include "processor.h" #include "disasm.h" #include <vector> #include <functional> class extension_t { public: virtual std::vector<insn_desc_t> get_instructions() = 0; virtual std::vector<disasm_insn_t*> get_disasms() ...
964
23.74359
75
h
null
mempool-main/toolchain/riscv-isa-sim/riscv/log_file.h
// See LICENSE for license details. #ifndef _RISCV_LOGFILE_H #define _RISCV_LOGFILE_H #include <stdio.h> #include <memory> #include <sstream> #include <stdexcept> // Header-only class wrapping a log file. When constructed with an // actual path, it opens the named file for writing. When constructed // with the null p...
863
21.736842
69
h
null
mempool-main/toolchain/riscv-isa-sim/riscv/devices.h
#ifndef _RISCV_DEVICES_H #define _RISCV_DEVICES_H #include "decode.h" #include "mmio_plugin.h" #include <cstdlib> #include <string> #include <map> #include <vector> #include <stdexcept> class processor_t; class abstract_device_t { public: virtual bool load(reg_t addr, size_t len, uint8_t* bytes) = 0; virtual bo...
2,715
26.434343
104
h
null
mempool-main/toolchain/riscv-isa-sim/riscv/sim.h
// See LICENSE for license details. #ifndef _RISCV_SIM_H #define _RISCV_SIM_H #include "debug_module.h" #include "devices.h" #include "log_file.h" #include "processor.h" #include "simif.h" #include <fesvr/htif.h> #include <fesvr/context.h> #include <vector> #include <string> #include <memory> #include <sys/types.h> ...
5,663
36.263158
99
h
null
mempool-main/toolchain/riscv-isa-sim/riscv/memtracer.h
// See LICENSE for license details. #ifndef _MEMTRACER_H #define _MEMTRACER_H #include <cstdint> #include <string.h> #include <vector> enum access_type { LOAD, STORE, FETCH, }; class memtracer_t { public: memtracer_t() {} virtual ~memtracer_t() {} virtual bool interested_in_range(uint64_t begin, uint6...
1,099
20.568627
87
h
null
mempool-main/toolchain/riscv-isa-sim/riscv/mmu.h
// See LICENSE for license details. #ifndef _RISCV_MMU_H #define _RISCV_MMU_H #include "decode.h" #include "trap.h" #include "common.h" #include "config.h" #include "simif.h" #include "processor.h" #include "memtracer.h" #include "byteorder.h" #include <stdlib.h> #include <vector> // virtual memory configuration #de...
15,802
31.786307
106
h
null
mempool-main/toolchain/riscv-isa-sim/riscv/debug_rom_defines.h
// See LICENSE file for license details. #ifndef DEBUG_ROM_DEFINES_H #define DEBUG_ROM_DEFINES_H // These are implementation-specific addresses in the Debug Module #define DEBUG_ROM_HALTED 0x100 #define DEBUG_ROM_GOING 0x104 #define DEBUG_ROM_RESUMING 0x108 #define DEBUG_ROM_EXCEPTION 0x10C // Region of memo...
606
24.291667
66
h