Changeset a16248b in git


Ignore:
Timestamp:
Feb 15, 2006, 1:59:03 PM (18 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
511d4f7f130c5e326f5cd4262a09e1967b915e47
Parents:
16382b5cb1293320dfe5cef48bc6ff85af7d5ee4
Message:
*hannes: twoPow


git-svn-id: file:///usr/local/Singular/svn/trunk@8943 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/kutil.cc

    r16382b ra16248b  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kutil.cc,v 1.16 2006-01-22 04:29:37 wienand Exp $ */
     4/* $Id: kutil.cc,v 1.17 2006-02-15 12:59:03 Singular Exp $ */
    55/*
    66* ABSTRACT: kernel: utils for kStd
     
    15951595}
    15961596
    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;
     1597long twoPow(long arg)
     1598{
     1599  return 1L << arg;
    16051600}
    16061601
Note: See TracChangeset for help on using the changeset viewer.