overflow.sol 370 B

1234567891011121314151617
  1. contract overflow {
  2. function addu32(uint32 a, uint32 b) public pure returns (uint32 c) {
  3. c = a + b;
  4. }
  5. function subu32(uint32 a, uint32 b) public pure returns (uint32 c) {
  6. c = a - b;
  7. }
  8. function mulu32(uint32 a, uint32 b) public pure returns (uint32 c) {
  9. c = a * b;
  10. }
  11. function powu32(uint32 a, uint32 b) public pure returns (uint32 c) {
  12. c = a ** b;
  13. }
  14. }