summaryrefslogtreecommitdiff
path: root/chromium/net/quic/congestion_control/cube_root.h
blob: 3b3736c1c59b9e89bd71b92d63359f2f7b4a7be0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef NET_QUIC_CONGESTION_CONTROL_CUBE_ROOT_H_
#define NET_QUIC_CONGESTION_CONTROL_CUBE_ROOT_H_

#include "base/basictypes.h"
#include "net/base/net_export.h"

namespace net {

class NET_EXPORT_PRIVATE CubeRoot {
 public:
  // Calculates the cube root using a table lookup followed by one Newton-
  // Raphson iteration.
  static uint32 Root(uint64 a);
};

}  // namespace net
#endif  // NET_QUIC_CONGESTION_CONTROL_CUBE_ROOT_H_