Changeset a16248b in git
- Timestamp:
- Feb 15, 2006, 1:59:03 PM (18 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- 511d4f7f130c5e326f5cd4262a09e1967b915e47
- Parents:
- 16382b5cb1293320dfe5cef48bc6ff85af7d5ee4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kutil.cc
r16382b ra16248b 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.1 6 2006-01-22 04:29:37 wienandExp $ */4 /* $Id: kutil.cc,v 1.17 2006-02-15 12:59:03 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 1595 1595 } 1596 1596 1597 long twoPow(long arg) { 1598 long t = arg; 1599 long result = 1; 1600 while (t > 0) { 1601 result = 2 * result; 1602 t--; 1603 } 1604 return result; 1597 long twoPow(long arg) 1598 { 1599 return 1L << arg; 1605 1600 } 1606 1601
Note: See TracChangeset
for help on using the changeset viewer.